﻿
using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.LawsRegulationses;

namespace LeadThing.AbpZeroTemplate.LawsRegulationses.EntityMapper.LawsRegulationses
{

    /// <summary>
    /// 法律法规表的数据配置文件
    /// </summary>
    public class LawsRegulationsCfg : EntityTypeConfiguration<LawsRegulations>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public LawsRegulationsCfg()
        {
            ToTable("LawsRegulations", AbpZeroTemplateConsts.SchemaName.Basic);





            // 标题
            Property(a => a.Title).HasMaxLength(4000);
            // 内容
            Property(a => a.Content).HasMaxLength(Int32.MaxValue);
        }
    }
}